package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbMailLog;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbMailLog is a Querydsl query type for ETbMailLog
 */
@Label("TbMailLog查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbMailLog extends RelationalPathBase<ETbMailLog> {

    private static final long serialVersionUID = 59803958;

    public static final QTbMailLog tbMailLog = new QTbMailLog("tb_mail_log");

    public class PrimaryKeys {

        public final PrimaryKey<ETbMailLog> primary = createPrimaryKey(id);

    }

    public final StringPath fileName = createString("fileName");

    public final StringPath id = createString("id");

    public final StringPath mailContent = createString("mailContent");

    public final StringPath mailTime = createString("mailTime");

    public final StringPath mailTo = createString("mailTo");

    public final PrimaryKeys pk = new PrimaryKeys();

    public QTbMailLog(String variable) {
        super(ETbMailLog.class, forVariable(variable), "null", "tb_mail_log");
        addMetadata();
    }

    public QTbMailLog(String variable, String schema, String table) {
        super(ETbMailLog.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbMailLog(Path<? extends ETbMailLog> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_mail_log");
        addMetadata();
    }

    public QTbMailLog(PathMetadata<?> metadata) {
        super(ETbMailLog.class, metadata, "null", "tb_mail_log");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(fileName, ColumnMetadata.named("file_name").withIndex(5).ofType(Types.VARCHAR).withSize(50));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(mailContent, ColumnMetadata.named("mail_content").withIndex(3).ofType(Types.VARCHAR).withSize(5000));
        addMetadata(mailTime, ColumnMetadata.named("mail_time").withIndex(4).ofType(Types.VARCHAR).withSize(50));
        addMetadata(mailTo, ColumnMetadata.named("mail_to").withIndex(2).ofType(Types.VARCHAR).withSize(50));
    }

}

